package mafia.younoodle.ilovemystuff;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button registerButton = (Button) findViewById(R.id.register_button);
        registerButton.setOnClickListener(new View.OnClickListener() {
        	public void onClick(View v) {
                Intent intent = new Intent("mafia.younoodle.ilovemystuff.CATEGORY_LIST");
                startActivity(intent);
        	}
        });

        Button showButton = (Button) findViewById(R.id.show_button);
        showButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
	            Intent intent = new Intent("mafia.younoodle.ilovemystuff.CATEGORY_LIST");
	            startActivity(intent);
			}
        });
        
        Button testButton = (Button) findViewById(R.id.test_button);
        testButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
	            Intent intent = new Intent("mafia.younoodle.ilovemystuff.CONNECTION_TEST");
	            startActivity(intent);
			}
        });
        
        Button facebookButton = (Button) findViewById(R.id.test_facebook_button);
        facebookButton.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
	            Intent intent = new Intent("mafia.younoodle.ilovemystuff.FACEBOOK_TEST");
	            startActivity(intent);
			}
        });
    }
}